home *** CD-ROM | disk | FTP | other *** search
- Path: news.magicnet.net!usenet
- From: gamecox@magicnet.net (Jody Hagins)
- Newsgroups: comp.lang.c++
- Subject: Re: Pure Virtual Destructor Question
- Date: 11 Feb 1996 01:42:50 GMT
- Organization: MagicNet, Inc.
- Message-ID: <4fjhiq$8v0@comet2.magicnet.net>
- References: <4fas7a$7ns@comet2.magicnet.net> <4fg2oh$r02@cnn.exu.ericsson.se>
- NNTP-Posting-Host: pm1-04.magicnet.net
- X-Newsreader: WinVN 0.92.6+
-
- In article <4fg2oh$r02@cnn.exu.ericsson.se>, ebumow@ebu.ericsson.com (Mickey Williams 66753) says:
- >
- >In article 7ns@comet2.magicnet.net, gamecox@magicnet.magicnet.net (Jody Hagins) writes:
- >>Assume a class Foo s.t.
- >
- >[snipped - class with pure virtual dtor]
- >
- >>This is correct, and compiles fine. However, I get a warning:
- >>"foo.h", : warning: please provide an out-of-line definition: Foo::~Foo() {};
- >>hich is needed by derived classes
- >
- >It's just a warning. Your compiler is probably trying to tell
- >you that you waon't get any inline benifits from this dtor.
- >
- >>
- >>Even when I make it non inline (in foo.C) I still get it.
- >
- >Get a better compiler. Your code is well-formed.
- >
- >Hope this helps
-
- Thanks. Unfortunately, I can't get rid of my at&t cfront 3.0 based
- compiler...
-
- I guess I'll just have to live with the warnings.
-
- -Jody
-